package com.xuecheng.content.service;

import com.xuecheng.content.model.po.CourseTeacher;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 课程-教师关系表 服务类
 * </p>
 *
 * @author itcast
 * @since 2023-02-11
 */
public interface CourseTeacherService extends IService<CourseTeacher> {

    /**
     * 获取课程教师列表
     * @param courseId
     * @return
     */
    List<CourseTeacher> getTeacherListByCourseId(long courseId);

    /**
     * 添加教师到课程
     * @param courseTeacher
     * @return
     */
    CourseTeacher addTeacherToCourse(CourseTeacher courseTeacher);

    /**
     * 修改教师信息
     * @param courseTeacher
     * @return
     */
    CourseTeacher updateTeacherInfo(CourseTeacher courseTeacher);

    /**
     * 删除教师信息
     * @param courseId
     * @param teacherId
     */
    void deleteTeacher(long courseId, long teacherId);
}
